package com.my.roco.service;

import com.my.roco.pojo.Pet;

import java.util.List;

public interface PetService {
    void addPet(Pet pet);
    Pet getPetByNumber(String number);
    List<Pet> getPetsByAttribute(String attribute);
    List<Pet> getAllPets();
    List<Pet> searchPets(String keyword);
    boolean existsByName(String name);
    boolean existsByNumber(String number);
    void deletePet(String number); 

    List<Pet> getPetsByCondition(
            String keyword, 
            String attribute, 
            String sortField, 
            String sortOrder
        );
}